package router

import (
	"ecom-manage/handles"
	"github.com/gin-gonic/gin"
)

func Init() *gin.Engine {
	// 1.创建路由
	r := gin.Default()
	r.Static("/static", "./static")
	r.POST("/login", handles.Login)
	r.GET("/userList", handles.UserList)
	r.GET("/userDetail", handles.UserDetail)
	return r
}
